<mat-card [ixUiSearch]="searchableElements.elements.kernel">
  <mat-toolbar-row>
    <h3>{{ 'Kernel' | translate }}</h3>
    <div *ixWithLoadingState="debugKernel$ as debugKernel" class="actions action-icon">
      <button
        *ixRequiresRoles="requiredRoles"
        mat-button
        [ixTest]="['kernel', 'configure']"
        [ixUiSearch]="searchableElements.elements.configure"
        (click)="onConfigurePressed(debugKernel)"
      >
        {{ 'Configure' | translate }}
      </button>
    </div>
  </mat-toolbar-row>

  <mat-card-content>
    <mat-list>
      <mat-list-item [ixUiSearch]="searchableElements.elements.enableKernelDebug">
        <span class="label">{{ 'Enable Debug Kernel' | translate }}:</span>
        <span *ixWithLoadingState="debugKernel$ as debugKernel" class="value">
          {{ debugKernel ? ('Enabled' | translate) : ('Disabled' | translate) }}
        </span>
      </mat-list-item>
    </mat-list>
  </mat-card-content>
</mat-card>
